package com.hzh.util;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.Serializable;

public class HgMultipartFile implements Serializable {
    
    private static final long serialVersionUID = -7567466037230780608L;
    private String key;
    private String originalFilename;
    private long size;
    private byte[] bytes;
    public InputStream getInputStream() {
        return new ByteArrayInputStream(this.getBytes());
    }
    
    public String getKey() {
        return key;
    }
    
    public void setKey(String key) {
        this.key = key;
    }
    
    public String getOriginalFilename() {
        return originalFilename;
    }
    
    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }
    
    public long getSize() {
        return size;
    }
    
    public void setSize(long size) {
        this.size = size;
    }
    
    public byte[] getBytes() {
        return bytes;
    }
    
    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }
}
